package com.message.service.impl;

import com.message.service.IProviderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ProviderServiceimpl implements IProviderService {

    @Autowired
    RabbitTemplate rabbitTemplate;

    @Override
    public boolean send(String str) {
        rabbitTemplate.convertAndSend("msgopenid_bzdata_relation", str);
        return false;
    }
}
